package com.hz.monitoring.module.hardware.controller.admin.monitoring_data.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("管理后台 - 监测数据统计 Response VO")
@Data
@Builder
@ToString(callSuper = true)
public class MonitoringDataStatisticalRespVO {

    @ApiModelProperty(value = "租户传感器id", required = true)
    @NotNull(message = "租户传感器id不能为空")
    private Long sensorTenantResourceId;

    @ApiModelProperty(value = "传感器型号", required = true)
    @NotNull(message = "传感器型号不能为空")
    private String sensorModel;

    @ApiModelProperty(value = "传感器名称", required = true)
    @NotNull(message = "传感器名称不能为空")
    private String sensorName;

    @ApiModelProperty(value = "值的数据属性列表", required = true)
    @NotNull(message = "值的数据属性列表")
    private List<MonitoringDataStatisticalItemRespVO> dataAttributes;

    @ApiModelProperty(value = "横坐标", required = true)
    @NotNull(message = "横坐标")
    private List<String> xAxis;

}
